cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(recipe-03 LANGUAGES CXX)

add_executable(hello-world hello-world.cpp)

# ${CMAKE_CXX_COMPILER_ID}定义不同宏
target_compile_definitions(hello-world PUBLIC "IS_${CMAKE_CXX_COMPILER_ID}_CXX_COMPILER")